package com.woniuxy.driverschool.service;

import com.woniuxy.driverschool.entity.BatchCompleteStatus;
import com.woniuxy.driverschool.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * @author shkstart
 * @create 2021-09-29 9:32
 */
public interface StudentService {
    // 添加学员
    void insertStudent(Student student);
   // 修改学员注册状态和时间
    void updateStudentRegisterDate ( String register,  Date regisDate,Integer sid);
    //单个修改学员结业状态和时间
    void updateStudentCompleteStatusDate ( String completeStatus,Date completeDate,Integer sid);
    //批量修改学员结业状态和时间
    void updateListStudentCompleteStatusDate ( List<BatchCompleteStatus> batchCompleteStatus);
    //删除学员
    void deleteStudentById(Integer sid);
    //根据id修改学员
    void updateStudentById(Student student);
    //用id查询学员
    Student selectStudentBySid(Integer sid);
    //分页查询信息
    List<Student> selectStudentsByPage(Student student, Integer pageIndex,
                                       Integer pageSize, Date startTime, Date endTime,
                                       Date completeStartTime, Date completeEndTime);
    //学员总条数
    int selectCountStudentsByPage(Student student, Date startTime,Date endTime,
                                  Date completeStartTime, Date completeEndTime);
}
